/**
 * desc: 项目相关接口
 */

import request from '../../utils/request'

// 新建项目
const newProject = (data) => {
  return request({
    url: '/api/project',
    method: 'POST',
    data
  })
}
//项目列表
const projectList = (data) => {
  return request({
    url: '/api/project/page',
    method: 'GET',
    data
  })
}
//日志簿
const getlog = (data) => {
  return request({
    url: '/api/job/page',
    method: 'GET',
    data
  })
}

//修改项目
const updateProject = (id,data) => {
  return request({
    url: '/api/project/'+id,
    method: 'PUT',
    data
  })
}
module.exports = {
  newProject,
  projectList,
  getlog,
  updateProject
}